<%--
  Created by IntelliJ IDEA.
  User: 17728
  Date: 2020/10/15
  Time: 11:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/pages/common/head.jsp" %>
    <link type="text/css" rel="stylesheet" href="static/css/style.css">
    <style type="text/css">
        .a {
            width: 80vw;
            margin: 0 auto;
            position: relative;
            top: 70px;
        }

        .b {
            width: 500px;
        }

        #bottom {
            width: 100%;
            height: 180px;
            position: fixed;
            bottom: 0;
            background-color: #2A2730;
            color: #FFFFFF;
        }

        #bottom p {
            text-align: center;
        }
    </style>
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">&nbsp;&nbsp;&nbsp;作业棒&nbsp;&nbsp;&nbsp;</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="MessageServlet?action=queryMessage1">教师界面</a></li>
                <li class="active"><a href="pages/teacher/teach_assign.jsp">布置作业<span
                        class="sr-only">(current)</span></a></li>

                <li><a href="HwServlet?action=queryHw&id=${sessionScope.teacher.id}">作业管理</a></li>
                <li><a href="pages/teacher/teacher_update.jsp">个人信息</a></li>
                <li><a href="pages/teacher/teacher_change.jsp">改密码</a></li>

            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li><a href="UserServlet?action=logout">&nbsp;&nbsp;&nbsp;退出&nbsp;&nbsp;&nbsp;</a></li>

            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="a">
    <div class="b">
        <form action="HwServlet?action=saveHw" method="post" enctype="multipart/form-data">
            <div class="form-group">
                <label for="title">标题</label>
                <input type="text" class="form-control" id="title" placeholder="title" name="title">
            </div>
            <label for="describe">描述</label>
            <textarea class="form-control" rows="8" id="describe" name="describe"></textarea>
            <input type="file" name="url">
            <span>结束时间：</span>
            <input type="date" name="end_time" value="yyyy-MM-dd">
            <button type="submit" class="btn btn-default">布置作业</button>
        </form>
    </div>
</div>
<%@include file="/pages/common/footer.jsp" %>
</body>
</html>
